#ifndef NEWFILE_H
#define NEWFILE_H

#include <QDialog>

namespace Ui
{
	class NewFile;
}

/**
  * Dialog for requesting a new document, allowing the user to select a type (text/formatted).
  */
class NewFile : public QDialog
{
	Q_OBJECT

	public:
		enum DocumentType {DOCUMENT_NONE, DOCUMENT_TEXT, DOCUMENT_FORMATTED};

		NewFile(QWidget *parent = 0);
		~NewFile();

		DocumentType getDocumentType() const;

	protected:
		void changeEvent(QEvent *e);

	private:
		Ui::NewFile *ui;
};

#endif // NEWFILE_H
